//
//  LeftSideVC
//  ShareUmbrella
//
//  Created by niupark on 2017/8/5.
//  Copyright © 2017年 尧尚信息科技. All rights reserved.
//

import UIKit
import YSKit
import RxSwift

class LeftSideVC: YSBaseViewController {

    override func setup() {
        super.setup()
        
    }
    //界面布局
    override func buildUI() {
        super.buildUI()
        self.title = I18n("VC.home.title")
        
      let btn =   UIButton(type: UIButtonType.system).ys.customize { (view) in
            self.view.addSubview(view)
            view.setTitle("退出登录", for: .normal)
            view.snp.makeConstraints({ (make) in
                make.top.equalTo(self.view).offset(50)
                make.leading.equalTo(self.view).offset(20)
            })
        }
        
        _ = btn.rx.tap
            .takeUntil(self.rx.deallocated)
            .subscribe(onNext: { [weak self](RxGestureTypeOptions) in
                
                guard let `self` = self else {
                    return
                }
                Auth.logout()
            })

        
        
    }
    
    //
    
    override func buildRx() {
        super.buildRx()
        
           }
    

}
